﻿<!doctype html>
<html>
	<head>
		<meta http-equiv="content-type" contents="text/html;utf-8">
		<title>首页</title>
		<link rel="stylesheet" href="<?php echo Yii::app()->getconfig("styleurl");?>shouye.css">
		<link rel="shortcut icon" href="<?php echo App()->baseUrl; ?>styles/sanfang.ico" type="image/x-icon" />
        <link rel="icon" href="<?php echo App()->baseUrl; ?>styles/sanfang.ico" type="image/x-icon" />
	</head>

	<body class="body-all">
		<div class="header">
			<div class="header-top1"></div>
			<div class="header-top2">
				<div class="header-logo"><a href="shouye.html" ><img src="<?php echo Yii::app()->getconfig("publicstyleurl");?>img/shouye/logo.png" alt="三芳科技"></a></div>
				<div class="header-nav">
					<ul>
						<li id="header-nav-on"><a href="/shouye.html">首页</a></li>
						<li><a href="/wenjuan.html">热门问卷</a></li>
						<li><a href="/my.html">我的问卷</a></li>
					</ul>
				</div>
				<div class="header-login">
					<ul>
						<li><a href="#">登录</a></li>
						<li class="header-login-on"><a href="#">我要注册</a></li>
					</ul>
				</div>
				<div class="header-top2-text">
					<p class="header-top2-text-large">最好用的小学生调研问卷</p>
					<p class="header-top2-text-small">让老师可以和家长共享学生进展状态，随时沟通，从而轻松完成学校目标</p>
				</div>
			</div>
		</div>
		<div class="content">
			
			<?php 
			     $publicstyleurl = Yii::app()->getconfig("publicstyleurl");
			     foreach ($info as $survey){       
        echo <<<sss
<div class="{$survey['cate']['ename']}">
				<div class="{$survey['cate']['ename']}-logo">
					<a href="#" alt="{$survey['cate']['cname']}"><img src="{$publicstyleurl}img/shouye/{$survey['cate']['ename']}.png"></a>
				</div>
				<div class="{$survey['cate']['ename']}-text">
					<p class="{$survey['cate']['ename']}-text-title title"><span class="content-title">{$survey['cate']['cname']}</span><span class="content-more">更多问卷>></p>
					<ul class="content-survey-list">
sss;
                    foreach ($survey['surveys'] as  $sur){
							         $seeurl = App()->baseUrl.'/index.php/statistics_user/'.$sur['sid'];
							         $dourl =  App()->baseUrl.'/index.php/'.$sur['sid'];
							          echo  <<<abc
			<li>
							<p class="content-text-title">	<span class="content-survey-title">			          
<a href="$dourl" target="_blank">{$sur['title']}</a></span><span class="content-number">（人参与{$sur['number']}）</span>
							                <span class="content-send"><a href="{$dourl}" target="_blank">我要答卷</a></span>
							                <span class="content-see"><a href="{$seeurl}" target="_blank">查看结果</a></span></p>
					    </li>
abc;
        }
			     echo "					</ul>
				</div>

			</div>";
			     }?>
						
					

			
			<div class="footer">
				<div class="footer-center">
					<div class="footer-center-text">
						北京三芳科技有限公司  版权所有 Copyright © 2015 京ICP备13034549号
					</div>
				</div>
			</div>
		</div>
	</body>
<html>